package vip.web3.api.form.user;

import lombok.Data;
import vip.web3.common.dto.BaseForm;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;


@Data
public class TransferForm extends BaseForm {

    private static final long serialVersionUID = 1L;


    @NotNull(message = "划转类型不能为空")
    @Min(value = 1, message = "划转类型只能是1和2")
    @Max(value = 2, message = "划转类型只能是1和2")
    private Integer type;

    @NotNull(message = "划转金额不能为空")
    private BigDecimal amount;

    @NotNull(message = "资金密码不能为空")
    private String password;

}
